@import "../element-variables.scss";

// 最外层盒子
.app-container {
  background-color: #fff;
  //padding: 20px;
  //margin: 18px 25px;
  overflow: auto;
  margin: 0 auto;
  //width: 1200px;
  /* 小于768px xs */
  @media (max-width: 767px) {
    & {
      //width: 100%;
    }
  }
}
.app-content {
  background-color: #f5f5f5;
  overflow: hidden;
}
.tool-list {
  display: flex;
  flex-wrap: wrap;
  padding: 8px;
  .tool-item {
    width: 33.33333%;
    padding: 8px;
    .tool-item-inner {
      width: 100%;
      padding: 20px 12px;
      border: 1px solid #EBEBEB;
      cursor: pointer;
      border-radius: 8px;
      display: flex;
      .left-icon {
        width: 50px;
      }
      .right-info {
        flex: 1;
        margin-left: 20px;
        h5.tool-name {
          height: 20px;
          text-overflow: ellipsis;
          overflow: hidden;
          white-space: nowrap;
          font-weight: normal;
          font-size: 18px;
          color: #333;
        }
        p.tool-sub-name {
          font-size: 12px;
          line-height: 16px;
          height: 30px;
          margin-top: 9px;
          color: #999;
          text-overflow: -o-ellipsis-lastline;
          overflow: hidden;
          text-overflow: ellipsis;
          display: -webkit-box;
          -webkit-line-clamp: 2;
          -webkit-box-orient: vertical;
        }
        p.price {
          font-size: 15px;
          line-height: 14px;
          margin-top: 18px;
          color: #FF6633;
          font-weight: bold;
          &.free {
            color: $--color-primary;
          }
        }
      }

      &:hover {
        -webkit-box-shadow: 0 5px 20px rgba(77, 185, 202,.3);
        -moz-box-shadow: 0 5px 20px rgba(77, 185, 202,.3);
        -o-box-shadow: 0 5px 20px rgba(77, 185, 202,.3);
        box-shadow: 0 5px 20px rgba(77, 185, 202,.3);
        transform: translate3d(0, -2px, 0);
        -webkit-transform: translate3d(0, -2px, 0);
        .right-info {
          h5.tool-name {
            color: #FF6633;
            text-decoration: underline;
          }
          p.tool-sub-name {
            text-decoration: underline;
          }
        }
      }
    }
  }
  &.tool-list-2 {
    padding: 0;
    justify-content: space-between;
    .tool-item {
      width: 23.5%;
      padding: 0 0 20px 0;
      .tool-item-inner {
        background-color: #fff;
        flex-direction: column;
        .left-icon {
          align-self: center;
          width: 80px;
        }
        .right-info {
          h5.tool-name {
            margin: 10px 0 20px;
          }
          p.price {
            font-size: 18px;
          }
        }
      }
    }
    /* 小于768px xs */
    @media (max-width: 767px) {
      .tool-item {
        width: 100%;
      }
      .right-info {
        text-align: center;
        //p.tool-sub-name {
        //  text-align: center;
        //}
        //p.price {
        //  text-align: center;
        //}
      }
    }
  }
}
.notice-bar {
  padding: 10px 0;
}
.list-title-bar {
  padding: 25px 20px 20px 50px;
  //background-color: #fff;
  h2.title {
    font-size: 24px;
    color: $--color-primary;
    width: 100%;
    padding: 0 0 25px 20px;
    border-bottom: 2px dashed #e9e9e9;
    position: relative;
    &::before {
      content: '';
      position: absolute;
      left: -24px;
      bottom: -14px;
      width: 24px;
      height: 28px;
      background: url("../assets/images/arrow.png") no-repeat center;
      background-size: cover;
      z-index: 2;
    }
  }
  @media (max-width: 767px) {
    & {
      margin-top: 10px;
      padding: 10px 10px 10px 30px;
      h2.title {
        padding: 5px 0 15px 5px;
        font-size: 18px;
        &::before {
          left: -20px;
          bottom: -12px;
          width: 20px;
          height: 24px;
        }
      }
    }
  }
}
.list-type-bar {
  display: flex;
  padding: 0 20px 0;
  .type-list {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-self: baseline;
    .type-item {
      border: 1px solid #e6e6e6;
      width: 90px;
      text-align: center;
      line-height: 35px;
      border-radius: 5px;
      margin: 3px 10px 0 0;
      color: #666;
      cursor: pointer;
      font-size: 15px;
      transition: background .3s;
      &.active, &:hover {
        background-color: $--color-primary;
        color: #fff;
      }
    }
  }
  .list-type-search {
    display: flex;
    //align-self: center;
    align-items: center;
    .search-input {
      margin-right: 15px;
      width: 220px;
      border: 1px solid #a0cdeb;
      border-radius: 20px;
      height: 32px;
      line-height: 32px;
      box-shadow: 0 1px 3px #a0cdeb;
      input {
        width: 100%;
        //border: none;
        outline: none;
        padding-left: 14px;
        border-radius: 20px;
        height: 30px;
        line-height: 30px;
        display: block;
        font-size: 12px;
        color: #495057;
        background-color: #fff;
        background-clip: padding-box;
        border: 1px solid #ced4da;
        transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
        &:focus {
          color: #495057;
          background-color: #fff;
          border-color: #80bdff;
          outline: 0;
          box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, .25);
        }
      }
    }
    .search-button {
      ::v-deep .el-button {
        padding: 0;
        height: 30px;
        line-height: 28px;
        width: 50px;
        text-align: center;
      }
    }
  }
}
.com-confirm-dialog {
  &.el-message-box {
    border: none;
    border-radius: 2px;
  }

  .el-message-box__header {
    width: 100%;
    height: 50px;
    line-height: 50px;
    padding: 0 0 0 20px !important;
    background-color: #f8f8f9;
    color: #333;

    .el-message-box__title {
      height: 50px;
      line-height: 50px;
      font-size: 16px;
      font-weight: 500;
      color: #333;
    }

    .el-message-box__headerbtn {
      top: 17px;
      right: 20px;

      .el-icon-close {
        width: 16px;
        height: 16px;
        color: #333;
      }
    }
  }

  .el-message-box__content {
    padding: 20px;
    color: #333;
  }

  .el-message-box__btns {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    padding: 5px 0 15px;
    button.el-button:nth-child(1) {
      margin-left: 10px;
    }
    button.el-button:nth-child(2) {
      margin-left: 0;
    }
    //text-align: right;
    //margin: auto 40px;
  }

}
